import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import {fetch, post, postForm} from './httpServer'
import Filter from "./filter/filter";
import Enums from '../public/static/js/enums';

const app = createApp(App);
// vue3 定义全局方法
app.config.globalProperties.$get = fetch;
app.config.globalProperties.$post = post;
app.config.globalProperties.$postForm = postForm;
app.config.globalProperties.$filter = Filter;
app.config.globalProperties.$Enums = Enums;
app.use(router)
app.mount('#app')



/*Object.keys(filter).forEach(key => {
    app.filter(key, filter[key]);
});*/

console.log("环境",process.env.NODE_ENV);
